//
//  SXWYRelativeHeadView.m
//  ShiXun
//
//  Created by lanou on 15/11/4.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXWYRelativeHeadView.h"

@implementation SXWYRelativeHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UILabel *lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth - 20, 0.5)];
        lineLabel.backgroundColor = [UIColor blackColor];
        [self addSubview:lineLabel];
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 10, 100, 20)];
        _titleLabel.text = @"相关新闻:";
        _titleLabel.textAlignment = NSTextAlignmentLeft;
        [self addSubview:_titleLabel];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
